package observer.usejava;

/**
 * 销售管理系统
 * observer.usejava
 * 测试
 * 2018/8/3-16:57
 * 科达科技股份有限公司-版权所有
 * Created by wuqiang on 16:57.
 */
public class UseJavaTest {

    public static void main(String[] args) {
        WeatherData weatherData=new WeatherData();
        CurrentConditon currentConditon=new CurrentConditon();
        weatherData.addObserver(currentConditon);

        weatherData.setMeasurements(100D,200D,300D);
        currentConditon.display();
        weatherData.setMeasurements(10D,20D,30D);
        currentConditon.display();
    }
}
